package cn.com.zte.ngbc.dao.mybatis.dynamicsql.node;

import org.dom4j.Element;

import cn.com.zte.ngbc.dao.mybatis.dynamicsql.DynamicContext;
import cn.com.zte.ngbc.frw.model.sql.dynamic.AndSqlNode;

public class AndSqlNodeHandler
  implements SqlNodeHandler
{
  private AndSqlNode and;
  
  public AndSqlNodeHandler(AndSqlNode and)
  {
    this.and = and;
  }
  
  public String process(DynamicContext context)
  {
	  
//	  Element selectEle=  context.selectEle;
//	  selectEle.addText("  and  ");
	  
    return context.getChildSql(this.and.getLogic(), "and");
  }
}
